#thirdfight.py
import combat

punch = combat.Attack('punch', (('d2', combat.DT.CRUSH),) )
  
knife = combat.Attack('knife', (('d4', combat.DT.PIERCE),) )
    

Harry = combat.Combatant('Harry')
Harry.ClearAttacks()

Sally = combat.Combatant('Sally')
Sally.ClearAttacks()

Harry.AddAttack(punch, ["{name} swings at {opponent}.", "{name} swings"])
Sally.AddAttack(knife, ["Sally stabs {opponent}.",])

Manager = combat.CombatManager([Harry, Sally])

Manager.processcombat()